package com.google.zxing.client.android.result;

public class ContentQuestions {

	private String strQues;
	private String strAnsA, strAnsB, strAnsC, strAnsD;
	private String strAnsTrue;
	private String strAnsChoi;
	private int intChecked = 0;
	private boolean blnResult;
	
	public String getStrQues() {
		return strQues;
	}
	public void setStrQues(String strQues) {
		this.strQues = strQues;
	}
	public String getStrAnsA() {
		return strAnsA;
	}
	public void setStrAnsA(String strAnsA) {
		this.strAnsA = strAnsA;
	}
	public String getStrAnsB() {
		return strAnsB;
	}
	public void setStrAnsB(String strAnsB) {
		this.strAnsB = strAnsB;
	}
	public String getStrAnsC() {
		return strAnsC;
	}
	public void setStrAnsC(String strAnsC) {
		this.strAnsC = strAnsC;
	}
	public String getStrAnsD() {
		return strAnsD;
	}
	public void setStrAnsD(String strAnsD) {
		this.strAnsD = strAnsD;
	}
	public String getStrAnsTrue() {
		return strAnsTrue;
	}
	public void setStrAnsTrue(String strAnsTrue) {
		this.strAnsTrue = strAnsTrue;
	}
	public boolean isBlnResult() {
		return blnResult;
	}
	public void setBlnResult(boolean blnResult) {
		this.blnResult = blnResult;
	}
	public int getIntChecked() {
		return intChecked;
	}
	public void setIntChecked(int intChecked) {
		this.intChecked = intChecked;
	}
	public String getStrAnsChoi() {
		return strAnsChoi;
	}
	public void setStrAnsChoi(String strAnsChoi) {
		this.strAnsChoi = strAnsChoi;
	}
	public String toString()
	{
		StringBuffer strContQues = new StringBuffer();
		strContQues.append(this.strQues + "@:@");
		strContQues.append(this.strAnsA + "@:@");
		strContQues.append(this.strAnsB + "@:@");
		strContQues.append(this.strAnsC + "@:@");
		strContQues.append(this.strAnsD + "@:@");
		strContQues.append(this.strAnsTrue + "@:@");
		strContQues.append(this.strAnsChoi + "@:@");
		strContQues.append(this.intChecked + "@:@");
		strContQues.append(this.blnResult);
		return strContQues.toString();
	}
	public void convertString(String strContQues)
	{
		String[] strContQuesTemp = strContQues.split("@:@");
		for (int i=0; i<strContQuesTemp.length; i++)
		{
			this.strQues = strContQuesTemp[0];
			this.strAnsA = strContQuesTemp[1];
			this.strAnsB = strContQuesTemp[2];
			this.strAnsC = strContQuesTemp[3];
			this.strAnsD = strContQuesTemp[4];
			this.strAnsTrue = strContQuesTemp[5];
			this.strAnsChoi = strContQuesTemp[6];
			this.intChecked = Integer.valueOf(strContQuesTemp[7]);
			this.blnResult = Boolean.valueOf(strContQuesTemp[8]);
		}
	}
}
